﻿using MediatR;
using Medical.Domain.DepartmentInfo;
using Medical.ErrorCode;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace Medical.Api.Write.Application.Command.DepartmentManagement.Use
{
    /// <summary>
    /// 修改使用表的命令
    /// </summary>
    public class UpdateUseCommands : IRequest<ApiResult<int>>
    {
        /// <summary>
        /// 要修改的使用实体
        /// </summary>
        [Required(ErrorMessage = "使用数据不能为空")]
        public UseTable useTable { get; set; }

        /// <summary>
        /// 要修改的物品表实体集合
        /// </summary>
        public List<ItemTable> itemTables { get; set; }
    }
}
